import { Entity, Column, PrimaryGeneratedColumn,PrimaryColumn } from 'typeorm';

@Entity('sys_menu',{
  comment:"系统菜单表"
})
export class Menu {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ default: "" })
  menuid: string;

  @Column({ default: "" })
  name: string;

  @Column({ default: "" })
  code: string;

  @Column({ default: "" })
  type: string;

  @Column({ default: "" })
  parentid: string;

  @Column({ default: "" })
  url: string;

  @Column({ default: "" })
  icon: string;

  @Column({ default: "" })
  component: string;

  @Column({ default: "0" })
  status: string;

  @Column({ default: "" })
  remark: string;

  @Column({ default: "" })
  create_time: string;

  @Column({ default: "" })
  update_time: string;
}